Interview Questions and Answer
Options:
a. The conditional logical operators cannot be overloaded
b. The array indexing operator can be overloaded
c. A public or nested public preference type does not overload the equality operator
d. None of the mentioned
Reveal Answer
Options:
a. Mathematical or physical modeling where we use classes to represent objects such as vectors,matrices,complexnumbers etc
b. Graphical programs where coordinate related objects are used to represent positions on the screen
c. Financial programs where a class represents an amount of money
d. All of the mentioned
Reveal Answer
Options:
a. public static op(arglist) { }
b. public static retval op(arglist) { }
c. public static retval operator op(arglist) { }
d. All of the mentioned
Reveal Answer
Options:
a. class
b. method()
c. data type
d. None
Reveal Answer
Options:
a. // MyClass1.cs partial class MyClass { partial void f(int x); }
b. // MyClass2.cs partial class MyClass { partial void f(int x) { Console.WriteLine(x.ToString()); } }
Reveal Answer
Options:
a. The partial method MUST return 'void'
b. Parameters can be 'output parameters'
c. The partial method is always public
d. None of the above
Reveal Answer
Options:
a. public static class A { public static string M(this string data) { return "something"; } }
b. public static class A { public string M(this string data) { return "something"; } }
c. public class A { public static string M(this string data) { return "something"; } }
d. public class A { public string M(this string data) { return "something"; } }
Reveal Answer
Options:
a. Anonymous types have property names which carry more information, for tuples you don't have this.
b. Tuples have property names which carry more information, for anonymous you don't have this.
c. You can't use anonymous types as return values and parameters though and you can with tuples.
d. 1 and 3
Reveal Answer
Bestitcourse google plus

Thank you for visiting BestITCourses, How can I help you

Thank you for visiting BestITCourses, How can I help you